package com.xiaoshi.forms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.xiaoshi.system.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统表单字段

 * </p>
 *
 * @author yuankai
 * @since 2022-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_forms_field")
public class SysFormsField extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "field_id", type = IdType.AUTO)
    private Long fieldId;

    private Long formId;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 字段类型
     */
    private Integer fieldType;

    /**
     * 字段code
     */
    private String fieldCode;

    /**
     * 最大长度
     */
    private Integer maxLength;

    /**
     * 最小长度
     */
    private Integer minLength;

    private Long createId;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;

    private Integer delTag;


    public static final String FIELD_ID = "field_id";

    public static final String FIELD_NAME = "field_name";

    public static final String FIELD_TYPE = "field_type";

    public static final String FIELD_CODE = "field_code";

    public static final String MAX_LENGTH = "max_length";

    public static final String MIN_LENGTH = "min_length";

    public static final String CREATE_ID = "create_id";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String DEL_TAG = "del_tag";

}
